package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author zhangyufu
 * @description 合同信息类，继承于BaseEntity类
 * 存放合同信息
 * @date 2019/7/9
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_contract")
public class Contract extends BaseEntity {

    /**
     * 合同名称
     */
    @Column(name = "contract_name", length = 50)
    private String contractName;

    /**
     * 合同内容
     */
    @Column(name = "contract_content", length = 50)
    private String contractContent;

    /**
     * 合同签订日期
     */
    @Column(name = "contract_date")
    private Date contractDate;

    /**
     * 合同终止日期
     */
    @Column(name = "contract_end_date")
    private Date contractEndDate;

}
